<include file="public@header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:url('pay/payname')}">分类管理</a></li>
		<li><a href="{:url('pay/addname')}">添加支付类型</a></li>
	</ul>
	<form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">
		<table class="table table-hover table-bordered table-list">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>支付名称</th>
					<th>是否启用</th>
					<th width="180">操作</th>
				</tr>
			</thead>
			<foreach name="data" item="data">
				<thead>
				<tr>
					<th width="50">{$data.id}</th>
					<th width="50">{$data.pay_name}</th>
					<if condition=" $data.pay_state eq 1">
						<th width="50">开启</th>
					<else/>
						<th width="50">关闭</th>
				    </if>
					<th width="180">
						<a href="{:url('pay/update',array('id'=>$data.id))}">修改</a>
						<a href="{:url('pay/del',array('id'=>$data.id,'table'=>'pay_name'))}">删除</a></th>
				</tr>
				</thead>
			</foreach>
		</table>
		<ul class="pagination">{$page|default=''}</ul>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>